package cn.alf.ssh.mlxt.service.impl;

import javax.annotation.Resource;

import cn.alf.ssh.mlxt.dao.UserDao;
import cn.alf.ssh.mlxt.domain.User;
import cn.alf.ssh.mlxt.service.RegisterService;

public class RegisterServiceImpl implements RegisterService {
    @Resource UserDao userDao;
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	@Override
	public boolean registerUser(User user) {
		getUserDao().add(user);
		return true;
	}

}
